package test.mllib.clustering;

import java.io.FileOutputStream;
import java.io.IOException;

public class MakeFile {
	public static void main(String[] args) throws IOException {
		FileOutputStream fos = new FileOutputStream("..\\..\\data\\spark\\mllib\\KMeansTest.txt");
		
		
		
		for(int i = 0; i < 10000; i ++){
			
			long f1 = (long)(Math.random() * 50);
			long f20 = (long)(Math.random() * 49+51);
			long f3 = (long)(Math.random() * 50);
			long f40 = (long)(Math.random() * 49+51);
			
			fos.write((f1+" "+f20+" "+f3+" "+f40+" "+"\n").getBytes());
			
			long f10 = (long)(Math.random() * 49+51);
			long f2 = (long)(Math.random() * 50);
			long f30 = (long)(Math.random() * 49+51);
			long f4 = (long)(Math.random() * 50);
			
			fos.write((f10+" "+f2+" "+f30+" "+f4+" "+"\n").getBytes());
		}
		fos.close();
	}
}
